xen/grant: Switch {create, replace}_grant_p2m_mapping to typesafe MFN
authorJulien Grall <julien.grall@arm.com>
Wed, 21 Feb 2018 13:46:26 +0000 (13:46 +0000)
committerJulien Grall <julien.grall@arm.com>
Fri, 6 Apr 2018 08:43:29 +0000 (09:43 +0100)
commita7982ad7b03b77d96c6d9cd3eea4b5ba7f77f377
tree4b37594e4643551d7909dd1926908ceddd00186e
parent89e4ce57bee13acc9f3fbeaec09cd0812650793c
xen/grant: Switch {create, replace}_grant_p2m_mapping to typesafe MFN

The current prototype is slightly confusing because it takes a guest
physical address and a machine physical frame (not address!). Switching to
MFN will improve safety and reduce the chance to mistakenly invert the
2 parameters.

Signed-off-by: Julien grall <julien.grall@arm.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/mm.c
xen/arch/x86/hvm/grant_table.c
xen/arch/x86/pv/grant_table.c
xen/common/grant_table.c
xen/include/asm-arm/grant_table.h
xen/include/asm-x86/grant_table.h
xen/include/asm-x86/hvm/grant_table.h
xen/include/asm-x86/pv/grant_table.h